﻿using Models;
using SIE.SCADA.SqlSugar;
using SIE.SCADA.ZemtDemo.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SIE.SCADA.ZemtDemo
{
    class AccessWorker
    {
        public AccessWorker()
        {
            Read();
        }

        public void Read()
        {
            var pgsql = new PgSqlAccess();
            using (var ctx = pgsql.GetClient())
            {
                if(pgsql.DBClient is SmdcOrmClient ormClient)
                {
                    //var res =  ormClient.SqlSugarClient.Queryable<scada_matcfg>().ToList();
                    //var s = ormClient.SqlSugarClient.Queryable<v_scada_jobstep>().ToList();
                    //var r = ormClient.SqlSugarClient.Queryable<v_scada_jobsteprecord>().ToList();
                }
            }
        }
    }
}
